import { materialConfig } from "visbar-component";
export const materialData: { [key: string]: any } = {
  brokeLine: {
    name: "折线图",
    key: "brokeLine",
    control: [
      {
        name: "基础折线图",
        key: "broke",
        icon: "/static/base-broke.png",
      }
    ]
  },
  histogram: {
    name: "柱状图",
    key: "histogram",
    control: [
      {
        name: "基础柱状图",
        key: "histogram",
        icon: "/static/histogram.png",
      }
    ]
  },
  pie: {
    name: "饼图",
    key: "pie",
    control: [
      {
        name: "基础饼图",
        key: "pie",
        icon: "/static/pie.png",
      }
    ]
  },
  dashboard: {
    name: "仪表盘",
    key: "dashboard",
    control: [
      {
        name: "基础仪表盘",
        key: "dashboard",
        icon: "/static/dashboard.png",
      }
    ]
  },
  map: {
    name: "地图",
    key: "map",
    control: [
      {
        name: "基础地图控件",
        key: "map",
        icon: "/static/map.png",
      }
    ]
  },
  visbarComponent: {
    name: "基础控件",
    key: "base",
    control: Object.keys(materialConfig).map(key => {
      const currentConfig = (materialConfig as any)[key];
      return {
        name: currentConfig.name,
        key,
        node: key
      }
    })
  }
}